package com.chang.coupon.config;

/**
 * @author: changzhenxi
 * @date: 2025年04月09日 09:38
 * @Version: 1.0
 * @description: 全局配置时间格式，前端莫名其妙传递了个毫秒，后端也得接收
 */
/*@Configuration
public class JacksonConfig {
    @Bean
    public ObjectMapper objectMapper() {
        ObjectMapper mapper = new ObjectMapper();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        mapper.setDateFormat(dateFormat);
        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        return mapper;
    }
}*/
